//
//  CRYTool.m
//  workWX
//
//  Created by 谢锷 on 2020/5/9.
//  Copyright © 2020 rongyiqiche Data and Technology Shanghai Co. Ltd. All rights reserved.
//

#import "CRYTool.h"

@implementation CRYTool

+ (BOOL) isContentNull:(NSString *) content {
    if (content == nil || content == NULL || [content isEqual:[NSNull null]]) {
        return YES;
    }
    if ([content isKindOfClass:[NSString class]]) {
        NSCharacterSet *set = [NSCharacterSet whitespaceAndNewlineCharacterSet];
        NSString *trimedString = [content stringByTrimmingCharactersInSet:set];
        if ([trimedString length] == 0 || [trimedString isEqualToString:@"(null)"]) {
            return YES;
        }
    }
    return NO;
}

+ (BOOL) isURLPathString:(NSString *) path {
    if ([path containsString:@"http://"] || [path containsString:@"https://"]) {
        return YES;
    }
    return NO;
}

@end
